<form class="form-horizontal form-validate form-modal" method="post" action="{:url('choose')}">
    <div class="modal-dialog" style="width: 700px;">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">&times;</button>
                <h4 class="modal-title">商品选择</h4>
            </div>
            <div class="modal-body">
                <section class="panel panel-default ">
                    <div class="table-responsive " id="list_box1">
                        {include file="liveing/goods/choosegoodslist" /}
                    </div>
                </section>
            </div>
            <div class="modal-footer">
                <div id="list_box2">
                    {include file="liveing/goods/choosepage" /}
                </div>
                <div  class="col-md-6  text-right text-center-xs fr" style="margin-top: 10px;">
                    <button type="submit" class="btn btn-primary" data-loading-text="保存中..." disabled>确认选择</button>
                    <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                </div>
            </div>
        </div>
    </div>
</form>
<script>
    function nums_nums(type) {
        if (type==2) {
            $("input[name='task_nums']").show();
        } else {
            $("input[name='task_nums']").hide();
        }
    }
    function changePage(page) {
        $.ajax({
            url:"{:url('getChooseList')}",
            type:"POST",
            data:{'page':page},
            success: function (res){
                $('#list_box1').empty();
                $('#list_box1').html(res.data.content);
                $("#list_box2").empty();
                $("#list_box2").html(res.data.page_content);
            }
        })
    }
</script>